<?php
$q=$_GET["q"];

$con = mysql_connect('localhost', 'root', '');
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
echo"polaczylem";
mysql_select_db("kurier", $con);

$sql="SELECT login FROM klienci";

$result = mysql_query($sql);

while($row = mysql_fetch_array($result))
  {
  echo "<tr>";
  echo "<td>" . $row['login'] . "</td>";
  echo "</tr>";
  }
echo "</table>";

mysql_close($con);
?> 